package com.lxd.milktea.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 商品的表单类,基本上和dataobject的差不多
 */
@Data
@ApiModel
public class ProductForm {

    @ApiModelProperty(value = "产品ID，新增时留空，更新时带上产品ID",example = "")
    private String productId;


    /** 名字. */
    @ApiModelProperty(value = "产品名",example = "陈皮奶茶")
    private String productName;

    /** 单价. */
    @ApiModelProperty(value = "产品单价",example = "19.99")
    private BigDecimal productPrice;

    /** 库存. */
    @ApiModelProperty(value = "产品库存",example = "20")
    private Integer productStock;

    /** 描述. */
    @ApiModelProperty(value = "产品描述",example = "牛逼就完事了")
    private String productDescription;

    /** 小图. */
    @ApiModelProperty(value = "产品图片",example = "http://www.baidu.com")
    private String productIcon;

    /** 类目编号. */
    @ApiModelProperty(value = "产品类目编号",example = "200")
    private Integer categoryType;

}
